package com.lin.config;

import com.lin.mapper.CarUserBillMapper;
import com.lin.service.CarUserBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Author Created by Lin Weihong
 * @Time on 2021/11/28 18:56
 */
@Service
public class AsyncConfigService {

    @Autowired
    CarUserBillMapper carUserBillMapper;

    @Scheduled(cron = "0 0 12 * * ?")
    public void updateLastDay() {
        carUserBillMapper.updateLastDay();
    }

}
